<!-- 表格组件 -->
<template>
    <a-table :columns="columns" :dataSource="data" rowKey="id" />
</template>

<script setup>
import { defineProps } from 'vue';
import { Table as ATable } from 'ant-design-vue';

const props = defineProps({
    data: {
        type: Array,
        required: true
    },
    columns: {
        type: Array,
        required: true
    }
});
</script>

<style scoped>
/* Add any custom styles here */
</style>